﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    namespace="Guoc.DAL.Domain" assembly="Guoc.DAL">

  <class name="RoleOfMenu" table="sys_RoleOfMenu">
    <id name="RoleOfMenuID">
      <column name="RoleOfMenuID" sql-type="char(32)" not-null="true"/>
      <generator class ="uuid.hex"/>
      <!--Guid.ToString()-->
    </id>

    <property name="RoleID" />
    <property name="MenuID" />

    <many-to-one name="MyRole" class="Role"></many-to-one>

    <many-to-one name="MyMenu" class="Menu"></many-to-one>
  

  </class>

</hibernate-mapping>